package com.hmdp.utils;

public class SystemConstants {
    public static final String IMAGE_UPLOAD_DIR = "D:\\lesson\\nginx-1.18.0\\html\\hmdp\\imgs\\";
    public static final String USER_NICK_NAME_PREFIX = "user_";
    public static final int DEFAULT_PAGE_SIZE = 5;
    public static final int MAX_PAGE_SIZE = 10;
    //验证码
    public static final String CODE = "code";
    //用户
    public static final String USER = "user";
    //redis数据库手机验证码前缀
    public static final String LOGIN_CODE_KEY = "login:code:";
    //redis数据库手机验证码有效时长
    public static final int LOGIN_CODE_TTL = 2;
    //redis数据库存放数据用户前缀
    public  static final String LOGIN_TOKEN_PRE = "login:token:";
    //redis数据库存放数据用户的有效时长
    public  static final int LOGIN_TOKEN_TTL = 30;
    //redis数据库存放商铺id前缀
    public  static final String SHOP_KEY_PRE = "cache:shop:";
    //redis数据库存放商铺种类id前缀
    public static final String SHOP_TYEP_KEY_PRE = "cache:shop:type:";
    //redis数据库存放商铺idTTL前缀
    public static final long SHOP_TTL = 30L;
    //redis数据库存放解决缓存穿透而设置的空值的有效时间
    public static final long SHOP_NULL_TTL = 1L;
    //redis数据库存放查询商铺的互斥锁前缀
    public static final String REDIS_LOCK_PRE = "lock:shop:";
}
